package math;


public class Vector {
	protected int n;
	protected Double [] v;
	
	public Vector () {};
	
	public Vector (Double [] v) {
		this.n = v.length;
		this.v = new Double[n];
		for (int i = 0; i < n; i++) {
			this.v[i] = v[i];
		}
	}

	public Double get(int i) {
		return v[i];
	}
	
	public int getN() {
		return n;
	}

	public static void main (String [] args) {
		
		Double [] v = {10.0,10.0};
		Vector vect = new Vector(v);
		v[0] = 11.0;
		System.out.println(vect.get(0));
	}

}
